<template>
	<el-config-provider :locale="zhCn">
		<div v-loading.fullscreen.lock="loadingData.isLoading">
			<router-view />
		</div>

	</el-config-provider>
</template>

<script setup lang="ts">
	import { ElConfigProvider } from 'element-plus';
	import zhCn from 'element-plus/es/locale/lang/zh-cn';
	import { useThemeStore, useLoading } from './store/theme';

	const theme = useThemeStore();
	theme.initTheme();
	const loadingData = useLoading()

</script>
<style>
	@import './assets/css/main.css';
</style>